// @ts-ignore
/* eslint-disable */
import request from "@/util/request.ts";

/** 此处后端没有提供注释 POST /aiPrompt/add */
export async function addAiPrompt(
  body: API.AiPromptAddRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong>("/aiPrompt/add", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 POST /aiPrompt/delete */
export async function deleteAiPrompt(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.deleteAiPromptParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>("/aiPrompt/delete", {
    method: "POST",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 GET /aiPrompt/list */
export async function listAiPrompt(options?: { [key: string]: any }) {
  return request<API.BaseResponseListAiPrompt>("/aiPrompt/list", {
    method: "GET",
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 POST /aiPrompt/update */
export async function updateAiPrompt(
  body: API.AiPromptUpdateRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>("/aiPrompt/update", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}
